<?php
	include_once("../DAO/DataHelper.php");
	include_once("../DAO/ChiTietDonHangDTO.php");
	include_once("../DAO/DonHangDTO.php");
	include_once("../DAO/DonHangDAO.php");
	if(isset($_REQUEST["MaHD"]))
	{
		$DanhSachChiTietDonHang = DonHangDAO::DanhSachChiTietDonHang($_REQUEST["MaHD"]);
	}
?>
	<div class="title">
		<h3>Chi Tiết Đơn Hàng </h3>
    </div>
    <table style="width: 666px;" id="gradient-style" summary="Meeting Results">
        <thead>
            <tr>
            <th style="text-align: center" scope="col">Tên sản phẩm </th>
             <th style="text-align: center" scope="col">Số lượng </th>
            <th style="text-align: center" scope="col">Đơn giá </th>
            </tr>
        </thead>
        <tbody id="tbody">
        <?php
			if($DanhSachChiTietDonHang != null)
			{
				foreach($DanhSachChiTietDonHang as $hoadon)
				{
		?>
            <tr>
            <td style="background: #d1d1d1; text-align: center;"><?php echo $hoadon->ctdh_ten_san_pham?></td>
            <td style="background: #d1d1d1; text-align: center;"><?php echo $hoadon->ctdh_so_luong?></td>
            <td style="background: #d1d1d1; text-align: center;"><?php echo $hoadon->ctdh_don_gia?></td>
            </tr>
        <?php
				}
			}
		?>
        </tbody>
  	</table> 